package com.heima.generic;

import java.util.ArrayList;
import java.util.Iterator;

import com.heima.bena.Person;

public class StudyGeneric2 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ArrayList<String> list = new ArrayList<>();
		list.add("a");
		list.add("b");
		list.add("c");
		list.add("d");
		
		Iterator<String> it = list.iterator();
		while(it.hasNext()){
			System.out.println(it.next());
		}
		
	}
}
